<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%media_channel}}".
 *
 * @property integer $id
 * @property string $media_name
 * @property string $map_id
 * @property string $media_id
 * @property string $media_pid
 * @property string $channel_name
 * @property string $last_update
 */
class MediaChannel extends \app\models\BaseAR
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%media_channel}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['channel_name'], 'required'],
            [['last_update'], 'safe'],
            [['media_name', 'media_id', 'media_pid'], 'string', 'max' => 64],
            [['map_id', 'channel_name'], 'string', 'max' => 128]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'media_name' => 'Media Name',
            'map_id' => 'Map ID',
            'media_id' => 'Media ID',
            'media_pid' => 'Media Pid',
            'channel_name' => 'Channel Name',
            'last_update' => 'Last Update',
        ];
    }
}
